﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace NpcFramework.Traffic.Editor
{
    [CustomEditor(typeof(TrafficCar))]
    public class TrafficCarEditor : UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            
            TrafficCar trafficCar = (TrafficCar)target;
            if (GUILayout.Button("生成车轮配置"))
            {
                if (trafficCar.gameObject.activeInHierarchy)
                {
                    trafficCar.GenerateConfigure();
                }
            }
            
        }
    }
}
